package ns.om.domain.dict

/**
 * 需求状态
 * @author neo
 * 2012-8-16
 */
class ReqStatus {
	String code;
	String name;
	Integer seq;


	static mapping = {
		id name:'code',generator:'assigned'
	}

	static init ={
		new ReqStatus(code:'submit',name:'提交',seq:10).save()
		new ReqStatus(code:'approve',name:'确认',seq:20).save()
		new ReqStatus(code:'develop',name:'开发',seq:30).save()
		new ReqStatus(code:'test',name:'测试',seq:40).save()
		new ReqStatus(code:'complete',name:'完成',seq:50).save()
		new ReqStatus(code:'cancel',name:'作废',seq:60).save()
	}

	@Override
	public String toString() {
		return "$name";
	}
}
